package com.smsp.service;

import com.github.pagehelper.PageInfo;
import com.smsp.common.ServerResponse;
import com.smsp.entity.Templet;
import com.smsp.entity.User;

public interface TempletService {

    /**
     * 添加
     * @param templet
     * @return
     */
    ServerResponse insertTemplet(Templet templet,User user);
    ServerResponse deleteTemplet(Templet templet);
    ServerResponse updateTemplet(Templet templet);
//    ServerResponse seleteTempletByPrimaryID(Integer ID);
    ServerResponse selectAllTemplet();


    ServerResponse updateTempletStatus(Templet templet);

    ServerResponse selectPassTempletByUserId(Integer userId);

    ServerResponse selectListByUserId(Integer userId);

    /**
     * 分页查询
     * @param page
     * @param pageSize
     * @return
     */
    PageInfo<Templet> findMessageDetailByPage(int page, int pageSize);
}
